package com.c.controller.admin;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.c.dto.PageDto;
import com.c.model.User;
import com.c.result.LayResult;
import com.c.service.admin.UserService;

@Controller
@RequestMapping("/user")
public class UserController {

	@Autowired
	public UserService userService;

	@RequestMapping("/list")
	@ResponseBody
	public LayResult<User> showItem(HttpServletRequest request, HttpServletResponse response, PageDto pg) {
		return userService.getUserList(pg);
	}

}
